﻿<UserControl
    x:Class="Songhay.Silverlight.BiggestBox.AdditionalSamplesPart.Views.TelerikRadialGaugeSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:galaEx="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL5"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:telerikgauges="clr-namespace:Telerik.Windows.Controls.Gauges;assembly=Telerik.Windows.Controls.Gauge"
    xmlns:vm="clr-namespace:Songhay.Silverlight.BiggestBox.AdditionalSamplesPart.ViewModels"
    Tag="Telerik Radial Gauge Sample (2011 Telerik Release)"
    Width="512" Height="400">
    <UserControl.Resources>
        <vm:TelerikRadialGaugeViewModel x:Key="TelerikRadialGaugeViewModelDataSource" d:IsDataSource="True" />
    </UserControl.Resources>
    <UserControl.DataContext>
        <Binding Source="{StaticResource TelerikRadialGaugeViewModelDataSource}" />
    </UserControl.DataContext>
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="GotFocus">
            <galaEx:EventToCommand
                Command="{Binding ViewFocusCommand, Mode=OneWay}"
                />
        </i:EventTrigger>
        <i:EventTrigger EventName="LostFocus">
            <galaEx:EventToCommand
                Command="{Binding ViewLostFocusCommand, Mode=OneWay}"
                />
        </i:EventTrigger>
    </i:Interaction.Triggers>
    <Grid>
        <telerikgauges:RadialGauge>
            <telerikgauges:RadialScale IsInteractive="False">

                <telerikgauges:RadialScale.MajorTick>
                    <telerikgauges:TickProperties />
                </telerikgauges:RadialScale.MajorTick>
                <telerikgauges:RadialScale.MiddleTick>
                    <telerikgauges:TickProperties Length="0.05" />
                </telerikgauges:RadialScale.MiddleTick>
                <telerikgauges:RadialScale.MinorTick>
                    <telerikgauges:TickProperties Length="0.025" />
                </telerikgauges:RadialScale.MinorTick>

                <telerikgauges:RadialScale.Label>
                    <telerikgauges:LabelProperties
                        FontSize="18"
                        />
                </telerikgauges:RadialScale.Label>

                <telerikgauges:RadialScale.Indicators>
                    <telerikgauges:Needle x:Name="Needle"
                        IsAnimated="True" Duration="0:0:1"
                        Location="Inside"
                        d:Value="42"
                        />
                </telerikgauges:RadialScale.Indicators>

                <telerikgauges:RadialScale.Ranges>
                    <telerikgauges:RadialRange
                        Background="Red" Opacity="0.5"
                        Min="90" Max="100"
                        StartWidth="0.5" EndWidth="0.5">
                    </telerikgauges:RadialRange>
                </telerikgauges:RadialScale.Ranges>

            </telerikgauges:RadialScale>
        </telerikgauges:RadialGauge>
    </Grid>
</UserControl>
